﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GenericTools.Models
{
    public class BaseWebAuthorization
    {
        private static string _Username;
        private static string _PasswordHash;

        /// <summary>
        /// Username of user making a request
        /// </summary>
        public static string Username
        {
            set { _Username = value; }
            get { return _Username; }
        }

        /// <summary>
        /// PasswordHash of user making a request.
        /// PasswordHash - created by taking the hash of (Username|Password). Use DataTransformation class
        /// </summary>
        /// <remarks>
        /// PasswordHash - created by taking the hash of (Username|Password)
        /// </remarks>
        public static string PasswordHash
        {
            set { _PasswordHash = value; }
            get { return _PasswordHash; }
        }
    }
}
